using System;
using System.Collections.Generic;
using System.Text;

namespace RapidHDL
{
    class HWScriptEcho : HWScriptCommand 
    {
        string sOutput;

        public HWScriptEcho(RapidHardware poRapidHardware, int piClockTime, string psValue)
            : base(poRapidHardware, piClockTime, 95)
        {
            sOutput = psValue;
        }

        public override string DoCommand()
        {
            return sOutput;
        }

        public override string ToVerilog()
        {
            return "$display(\"" + ClockTime.ToString() + "," + sOutput + "\");";
        }
    }
}
